package Statistics;


import java.util.Date;

public class WebPage implements Comparable<WebPage> {
    private String url;
    private Integer visits;
    private Date lastVisit;

    public WebPage() {
    }
    public WebPage(String url, Integer visits){
        this.url = url;
        this.visits = visits;
        this.lastVisit = new Date();
    }
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getVisits() {
        return visits;
    }
    public void setVisits(Integer visits) {
        this.visits = visits;
    }
    public Date getLastVisit() {
        return lastVisit;
    }
    public void setLastVisit(Date lastVisit) {
        this.lastVisit = lastVisit;
    }
    public String toString() {
        return "WebPage [url=" + url + ", visits=" + visits + "}";
    }

    @Override
    public int compareTo(WebPage o) {
        return 0;
    }
}

